package com.example.demo.controller;

import com.example.demo.entity.CrCustomer;
import com.example.demo.mapper.orderMapper;
import com.example.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 财务报表
 *
 */
@Controller
@RequestMapping("/finance_report")
public class FinanceReportController {

    @Autowired
    orderMapper om;

    @RequestMapping("/")
    public JsonResult accept(){
        return new JsonResult();
    }

    @RequestMapping("/select_all")
    @ResponseBody
    public JsonResult selectAll(){
        List<CrCustomer> list = om.selectAll("海","甘");
        return new JsonResult();
    }
}
